<?php
require_once __DIR__ . '/phpqrcode.php';

class QRActions
{
    static function qr2file(
        $text,
        $file_name,
        $errorCorrectionLevel = 'L', //容错级别
        $matrixPointSize = 6, //生成图片大小
        $margin = 2
    ) {
        //生成二维码图片
        return QRcode::png($text, $file_name, $errorCorrectionLevel, $matrixPointSize, $margin);
    }
}
